<template>
  <div class="goods">
    <good-list-item v-for="(item,index) in goods" :goods="item" :key="index" />
  </div>
</template>

<script>
import GoodsListItem from "./GoodsList";
export default {
  data() {
    return {};
  },
  props: {
    goods: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  components: {
    GoodsListItem,
  },
};
</script>

<style scoped>
.goods {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
</style>
